<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${costapply.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">付款时间：</label>
                            <div class="col-sm-8">
                                <input type="text" class="laydate-icon layer-date form-control" id="payDate"
                                       name="payDate" placeholder="付款时间" th:value="${#dates.format(costapply.payDate, 'yyyy-MM-dd')}"
                                       onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
                                       style="background-color: #fff;" readonly="readonly"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请金额：</label>
                            <div class="col-sm-8">
                                <input id="appliAmount" name="appliAmount" th:value="${costapply.appliAmount}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收款人：</label>
                            <div class="col-sm-8">
                                <input id="payee" name="payee" class="form-control"  th:value="${costapply.payee}" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收款账号：</label>
                            <div class="col-sm-8">
                                <input id="payeeAccount" name="payeeAccount" th:value="${costapply.payeeAccount}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">开户行：</label>
                            <div class="col-sm-8">
                                <input id="bankName" name="bankName" th:value="${costapply.bankName}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">付款方：</label>
                            <div class="col-sm-8">
                                <select data-placeholder="收款方" id="paymentComid" name="paymentComid" class="form-control chosen-select chosen-select-paymentComid" tabindex="2" required>
                                    <option value="">付款方</option>
                                    <option th:each="companyDO : ${companyDOList}" th:value="${companyDO.id}" th:text="${companyDO.name}"
                                            th:selected="${companyDO.id} == ${costapply.paymentComid}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">付款方式：</label>
                            <div class="col-sm-8">
                                <select data-placeholder="付款方式" id="paymentTypeid" name="paymentTypeid"
                                        class="form-control chosen-select chosen-select-paymentTypeid" tabindex="2" required>
                                    <option value="">付款方式</option>
                                    <option th:each="paytype : ${paytypeList}" th:value="${paytype.id}" th:text="${paytype.name}"
                                            th:selected="${paytype.id} == ${costapply.paymentTypeid}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">所属项目：</label>
                            <div class="col-sm-8">
                                <select data-placeholder="所属项目" id="itmProjectid" name="itmProjectid"
                                        class="form-control chosen-select chosen-select-itmProjectid" tabindex="2" required>
                                    <option value="">所属项目</option>
                                    <option th:each="project : ${projectList}" th:value="${project.id}" th:text="${project.itmNumber}"
                                            th:selected="${project.id} == ${costapply.itmProjectid}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">摘要：</label>
                            <div class="col-sm-8">
                                <input id="summary" name="summary" th:value="${costapply.summary}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注：</label>
                            <div class="col-sm-8">
                                <input id="remark" name="remark" th:value="${costapply.remark}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/fin/costapply/edit.js"></script>
<script type="text/javascript" src="/js/plugins/cropper/cropper.min.js"></script>
<script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js" ></script>
<script type="text/javascript" src="/js/plugins/distpicker/distpicker.data.min.js"></script>
<script type="text/javascript" src="/js/plugins/distpicker/distpicker.min.js"></script>
</body>
</html>
